import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
redirect:'/login'
    },
    {
      path: '/login',
      component: () => import('../views/member/MemberLoginView.vue')
    },
    {
      path: '/houseadd',
      component: () => import('../views/house/HouseAddView.vue')
    },
    {
      path: '/houselist',
      component: () => import('../views/house/HouseView.vue')
    },
    {
      path: '/housenumadd',
      component: () => import('../views/housenum/HouseNumAddView.vue')
    },
    {
      path: '/housenumlist',
      component: () => import('../views/housenum/HouseNumListView.vue')
    }
  ]
})

export default router
